package com.town.service;

import com.town.dao.UserDao;
import com.town.dao.UserDaoImpl;
import com.town.dao.UserDaoMysqlImpl;
import com.town.dao.UserDaoOracleImpl;

public class UserServiceImpl  implements  UserService{
//    private UserDao userDao =new UserDaoImpl();
//    private UserDao userDao =new UserDaoMysqlImpl();
    private UserDao userDao =new UserDaoOracleImpl();

    //利用set实现

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void getUser() {
    userDao.getUser();
    }



}
